//
//  MSSetTableViewController.m
//  SocietySale
//
//  Created by Mike on 16/11/18.
//  Copyright © 2016年 Mike. All rights reserved.
//

#import "MSSetTableViewController.h"
#import "MSSetTableViewCell.h"

@interface MSSetTableViewController ()

@end

@implementation MSSetTableViewController

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    NSString *cellId = @"cellId";
    MSSetTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
    if (!cell) {
        cell = [[MSSetTableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:cellId];
    }
    if (indexPath.row == [self.dataArray count]-1) {
        cell.horizonLineView.frame = CGRectMake(0, 49.4, SCREEN_WIDTH, 0.6);
        cell.arrow.hidden = YES;
    }
    else{
        cell.horizonLineView.frame = CGRectMake(12, 49.4, SCREEN_WIDTH-24, 0.6);
        cell.arrow.hidden = NO;
    }
    cell.data = self.dataArray[indexPath.row];
    cell.subLabel.textColor = kLightBlackColor;
    cell.subLabel.frame = CGRectMake(90, 0, SCREEN_WIDTH-102, cell.height);
    return cell;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return 50;
}

@end
